import Layout from '@/page/index/'

export default [
  {
    path: '/planningSubjectList',
    component: Layout,
    redirect: '/planningSubjectList/index',
    children: [{
      path: 'index',
      name: '规划课题列表',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/planningSubjectList')
    }]
  },
  {
    path: '/subjectProtocol',
    component: Layout,
    redirect: '/subjectProtocol/detail',
    children: [{
      path: 'detail/:id',
      name: '课题拟定',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/subjectProtocol')
    }]
  },
  {
    path: '/subjectEdit',
    component: Layout,
    redirect: '/subjectEdit/detail',
    children: [{
      path: 'detail/:id',
      name: '课题编制',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/subjectEdit')
    }]
  },
  {
    path: '/taskAssign',
    component: Layout,
    redirect: '/taskAssign/detail',
    children: [{
      path: 'detail',
      name: '材料收集任务分配',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/taskAssign')
    }]
  },
  {
    path: '/subjectLevy',
    component: Layout,
    redirect: '/subjectLevy/detail',
    children: [{
      path: 'detail/:id',
      name: '课题征集',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/subjectLevy')
    }]
  },
  {
    path: '/feedBackSummary',
    component: Layout,
    redirect: '/feedBackSummary/detail',
    children: [{
      path: 'detail/:id',
      name: '课题征集汇总',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/feedBackSummary')
    }]
  },
  {
    path: '/subjectLevyResult',
    component: Layout,
    redirect: '/subjectLevyResult/detail',
    children: [{
      path: 'detail',
      name: '课题征集结果',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/subjectLevyResult')
    }]
  },
  {
    path: '/addSubject',
    component: Layout,
    children: [{
      path: 'detail/:id',
      name: '增加课题',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/addSubject')
    }]
  },
  {
    path: '/editSubject',
    component: Layout,
    redirect: '/editSubject/detail',
    children: [{
      path: 'detail/:id',
      name: '编辑课题',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/editSubject')
    }]
  },
  {
    path: '/subjectDetail',
    component: Layout,
    redirect: '/subjectDetail/detail',
    children: [{
      path: 'detail/:id',
      name: '课题详情',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/subjectDetail')
    }]
  },
  {
    path: '/subjectResultDetail',
    component: Layout,
    redirect: '/subjectResultDetail/detail',
    children: [{
      path: 'detail/:id',
      name: '课题成果详情',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/detail')
    }]
  },
  {
    path: '/levyFeedback',
    component: Layout,
    redirect: '/levyFeedback/detail',
    children: [{
      path: 'detail/:id',
      name: '课题征集反馈',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/levyFeedback')
    }]
  },
  {
    path: '/subjectOpinionList',
    component: Layout,
    redirect: '/subjectOpinionList/detail',
    children: [{
      path: 'detail/:id',
      name: '课题征求意见列表',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/subjectOpinionList')
    }]
  },
  {
    path: '/addSubjectOpinion',
    component: Layout,
    redirect: '/addSubjectOpinion/detail',
    children: [{
      path: 'detail/:id',
      name: '新增课题征求意见',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/addSubjectOpinion')
    }]
  },
  {
    path: '/subjectPlanList',
    component: Layout,
    redirect: '/subjectPlanList/index',
    children: [{
      path: 'index',
      name: '课题计划列表',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/subjectPlanList')
    }]
  },
  {
    path: '/draftSubjectPlan',
    component: Layout,
    redirect: '/draftSubjectPlan/index',
    children: [{
      path: 'index',
      name: '拟定计划',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/draftSubjectPlan')
    }]
  },
  {
    path: '/subjectReportList',
    component: Layout,
    redirect: '/subjectReportList/index',
    children: [{
      path: 'index',
      name: '课题报告列表',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/subjectReportList')
    }]
  },
  {
    path: '/subjectReportHistory',
    component: Layout,
    redirect: '/subjectReportHistory/detail',
    children: [{
      path: 'detail/:id',
      name: '课题历史版本',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/subjectReportHistory')
    }]
  },
  {
    path: '/planFeedbackList',
    component: Layout,
    redirect: '/planFeedbackList/detail',
    children: [{
      path: 'detail/:id',
      name: '课题计划征求意见列表',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/planFeedbackList')
    }]
  },
  {
    path: '/addSubjectOpinionPlan',
    component: Layout,
    redirect: '/addSubjectOpinionPlan/detail',
    children: [{
      path: 'detail/:id',
      name: '新增课题计划征求意见',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/addSubjectOpinionPlan')
    }]
  },
  {
    path: '/planFeedback',
    component: Layout,
    redirect: '/planFeedback/detail',
    children: [{
      path: 'detail/:id',
      name: '课题计划征求意见反馈',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/planFeedback')
    }]
  },
  {
    path: '/fileFeedback',
    component: Layout,
    redirect: '/fileFeedback/detail',
    children: [{
      path: 'detail/:id',
      name: '课题报告征求意见反馈',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/fileFeedback')
    }]
  },
  {
    path: '/subjectReportOpnList',
    component: Layout,
    redirect: '/subjectReportOpnList/detail',
    children: [{
      path: 'detail/:id',
      name: '课题报告征求意见列表',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/subjectReportOpnList')
    }]
  },
  {
    path: '/addSubjectReportOpn',
    component: Layout,
    redirect: '/addSubjectReportOpn/detail',
    children: [{
      path: 'detail/:id',
      name: '新增课题报告征求意见',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/addSubjectReportOpn')
    }]
  },
  {
    path: '/levyFeedbackAllList',
    component: Layout,
    redirect: '/levyFeedbackAllList/detail',
    children: [{
      path: 'detail/:id',
      name: '获得所有待办',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/levyFeedbackAllList')
    }]
  },
  {
    path: '/solicitOpinions',
    component: Layout,
    redirect: '/solicitOpinions/index',
    children: [{
      path: 'index',
      name: '征求意见列表',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/solicitOpinions')
    }]
  },
  {
    path: '/solicitOpinion',
    component: Layout,
    redirect: '/solicitOpinion/detail',
    children: [{
      path: 'detail/:id',
      name: '征求意见',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/solicitOpinion')
    }]
  },
  {
    path: '/subjectRelease',
    component: Layout,
    redirect: '/subjectRelease/index',
    children: [{
      path: 'index',
      name: '课题成果',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/subjectRelease')
    }]
  },
  {
    path: '/materialCollection',
    component: Layout,
    redirect: '/materialCollection/detail',
    children: [{
      path: 'detail/:id',
      name: '材料收集列表',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/fileTask/materialCollection')
    }]
  },
  {
    path: '/addMaterialCollection',
    component: Layout,
    redirect: '/addMaterialCollection/detail',
    children: [{
      path: 'detail/:id',
      name: '新增材料收集',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/fileTask/addMaterialCollection')
    }]
  },
  {
    path: '/collectionFeedback',
    component: Layout,
    redirect: '/collectionFeedback/detail',
    children: [{
      path: 'detail/:id',
      name: '材料收集文件列表',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/fileTask/collectionFeedback')
    }]
  },
  {
    path: '/preparationPlan',
    component: Layout,
    redirect: '/preparationPlan/detail',
    children: [{
      path: 'detail/:id',
      name: '编制计划页面',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/preparationPlan')
    }]
  },
  {
    path: '/planningForComments',
    component: Layout,
    redirect: '/planningForComments/detail',
    children: [{
      path: 'detail/:id',
      name: '课题计划-征求意见',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/planningForComments')
    }]
  },
  {
    path: '/modifyPlan',
    component: Layout,
    redirect: '/modifyPlan/detail',
    children: [{
      path: 'detail/:id',
      name: '修改计划',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/modifyPlan')
    }]
  },
  {
    path: '/releasePlan',
    component: Layout,
    redirect: '/releasePlan/detail',
    children: [{
      path: 'detail/:id',
      name: '下达计划',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/releasePlan')
    }],
  },
  {
    path: '/subject',
    component: Layout,
    children: [
      {
        path: 'add',
        name: '新增计划',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/subject/selectPlan')
      }, {
        path: 'edit',
        name: '编辑计划',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/subject/selectPlan')
      }, {
        path: 'selectPlan',
        name: '选择计划',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/subject/selectPlan')
      }, {
        path: 'addPlan',
        name: '添加计划',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/subject/selectPlan')
      }, {
        path: 'releasePlan',
        name: '课题-下达计划',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/subject/selectPlan')
      }, {
        path: 'detail',
        name: '课题详情成果',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/subject/detail')
      }]
  },
  {
    path: '/subjectCollectionBack',
    component: Layout,
    redirect: '/subjectCollectionBack/add',
    children: [{
      path: 'add/:id',
      name: '课题征集意见反馈',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/subjectCollectionBack')
    }]
  },
  {
    path: '/subjectOpinionBack',
    component: Layout,
    redirect: '/subjectOpinionBack/detail',
    children: [{
      path: 'detail/:id',
      name: '课题征集意见反馈（可反馈多个课题）',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/subject/subjectOpinionBack')
    }]
  },
]
